﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RWLibrary.Logic.Queries
{
    using Graph;
    public abstract class Query
    {

        public Graph Graph { get; private set; }
        
        protected Query(Graph w)
        {
            Graph = w;
        }

        public abstract bool Excecute();

        protected Dictionary<State, Node> CreateStateNodeMapping()
        {
            return Graph.Nodes.ToDictionary(x => x.State, x => x);
        }
    }
}
